home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / strategy / connx-1.0 < prev    next >
Text File  |  1996-11-17  |  3KB  |  108 lines

  1.  
  2. INTRO
  3.  
  4. connx is basically just another version of connect-4, go-moku (spelling?),
  5. etc.  Not much originality here.  I wanted to write a client/server 
  6. game using X-Windows that I could play with friends over the net.  
  7. Hopefully, this is just a stepping-stone to some other more advanced
  8. net games I'm working on.  It may not be XPilot, but 
  9. it can be kinda fun (for a little while).
  10.  
  11.  
  12. The only thing different about this version is that it allows multiple
  13. players/teams to play what is usually considered a two-player game.
  14. Some people have told me it makes the game interesting.  Some people
  15. have told me it's just stupid.  Either way - Enjoy.
  16.  
  17. Neil Cohen 
  18. cohenn@us.net
  19.  
  20. **********************************************************************
  21.  
  22. COMPILATION
  23.  
  24. connx was written using X11R6 on Linux, but there's no reason
  25. why it shouldn't work with R4/R5.  The scalable fonts may not
  26. work correctly, but they should just default to a fixed size.
  27.  
  28. connx runs on a color display.  There's no code in it to handle
  29. pixmaps of depth 1.  Running it with a mono display adapter will
  30. probably cause the game to crash.
  31.  
  32. It has been tested (though not thoroughly) on Linux and AIX.
  33. (For AIX, add the -DAIX flag in the Makfile.)
  34. I'd be surprised if it didn't work on any other Unix box.
  35.  
  36. connx can be compiled to use Unix sockets or TCPIP sockets.
  37. The only reason to used Unix sockets is if you don't have
  38. TCPIP running on your machine (which I didn't when I developed
  39. this under Linux).
  40.  
  41.  
  42. ************************************************************************
  43.  
  44. PLAYING THE GAME
  45.  
  46. ---------------------------------------------------------------------
  47.  
  48. Run the server: connserv <options>
  49.  
  50.  
  51. options:
  52.  
  53. -rows:  how many rows will be on the game board
  54. -cols: how many columns will be on the game board
  55. -conn: number of pieces a player has to connect to win
  56. -gravity: whether pieced fall to lowest unused position (connect 4)
  57.           or stay where you place them (go-moku).
  58. -timeout: how long a player has to move in seconds.
  59.  
  60. The server brings up a menu which allows you to set all the
  61. options, list connections, start the game, etc.
  62.  
  63.  
  64. ----------------------------------------------------------------------
  65.  
  66. have the clients connect: connx -name <player_name> -host <host_to_connect_to>
  67.                               -display <X_Server_to_Use>
  68.  
  69. Make sure either the connect.ad resources file is in the
  70. directory you are running connx from, or the defaults have been
  71. added to your .Xdefaults file.
  72.  
  73. If -name isn't specified, it defaults to user's account name.
  74. If -host isn't specified, it defaults to the local host.
  75. If -display isn't specified, it defaults to $DISPLAY.
  76.        
  77.  
  78. Once all the players have connected, use the server to 
  79. start the game.  
  80.  
  81. Players use the mouse to move their piece and the mouse button
  82. to place it.  Selecting 'Q' will cause them to quit the game.
  83. connx alows the player to resize their window to any size.
  84.  
  85. The rest is pretty easy to figure out. Actually, so
  86. is all the above.
  87.  
  88.  
  89. ***********************************************************************
  90.  
  91.  
  92. Files
  93.  
  94. README - this file
  95. Makefile - a very basic Makefile
  96. commun.c, commun.h - TCPIP communications
  97. xconnect.h, xconnect.c - the XWindow routines used by the client
  98. client.c - the main client driver
  99. server.c - the main server driver
  100. connect.h, connect.c - routines used by server to play the game
  101. connect.ad - resource file -- colors, etc.
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.